Skip to content

Define < and isless for Partials#791

Merged
devmotion merged 1 commit intomasterfrom
dmw/partials_cmp
Dec 28, 2025
Merged

Define < and isless for Partials#791
devmotion merged 1 commit intomasterfrom
dmw/partials_cmp

Conversation

@devmotion
Copy link
Member

Fixes the incorrect comparison in #790 involving NaN. With this PR:

julia> xs = Dual(0.0,NaN)
Dual{Nothing}(0.0,NaN)

julia> xs < 0
false

julia> xs > 0
false

julia> isless(xs, 0)
false

julia> isless(0, xs)
true

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants